package com.zhuoshi.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhuoshi.entity.Indent;
import com.zhuoshi.entity.IndentCustom;
import com.zhuoshi.mapper.IndentMapper;
import com.zhuoshi.service.IndentService;

@Service("indentService")
public class IndentServiceImpl implements IndentService{
	
	@Autowired
	private IndentMapper indentMapper;
	
	public List<IndentCustom> selectAllIndentLiu() {
		return indentMapper.selectAllIndentLiu();
	}

	public IndentCustom selectIndentCustomById(int id) {
		
		return indentMapper.selectIndentCustomById(id);
	}
	
	public int toJiHuiZhuanRenGou(Indent indent) throws Exception {
		int n = indentMapper.insert(indent);
		return n;
	}

}